package com.example.mybatis.controller;

import com.example.mybatis.entity.Enum.UserSexEnum;
import com.example.mybatis.entity.User;
import com.example.mybatis.mapper.UserMapper;
import com.example.mybatis.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

/**
 * @author Devil
 * @create 2022-03-04 11:27
 */
@RestController
@RequestMapping("test")
public class MyController {
    @Autowired
    private UserService userService;
    @Autowired
    private UserMapper userMapper;

    @GetMapping
    public void doTest(){
        userService.select();
    }

}
